package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.ScenicComment;
import cn.wolfcode.luowowo.comment.query.ScenicCommentQeury;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.springframework.data.domain.Page;

public interface IScenicCommentService {
    /**
     * 添加点评
     * @param scenicComment
     * @param userInfo
     */
    ScenicComment commentAdd(ScenicComment scenicComment, UserInfo userInfo);

    /**
     * 查询点评的分页对象
     * @param qo
     * @return
     */
    Page<ScenicComment> query(ScenicCommentQeury qo);

    /**
     * 添加点评的评论
     * @param scenicComment
     * @param userInfo
     * @return
     */
    ScenicComment refCommentAdd(ScenicComment scenicComment, UserInfo userInfo);
}
